extends KinematicBody2D


var driction:Vector2
export var speed = 200

func _ready():
	pass 

func _process(delta):
	driction = Vector2.ZERO
	if Input.is_action_pressed("ui_left"):
		driction = Vector2.LEFT
	if Input.is_action_pressed("ui_right"):
		driction = Vector2.RIGHT
	move_and_collide(driction * speed * delta)

func playSE():
	$SE.play()
	pass
